package com.example.demo.common.serviceImpl;

import com.example.demo.common.entity.Defect;
import com.example.demo.common.entity.Micro;
import com.example.demo.common.mapper.MicroMapper;
import com.example.demo.common.service.MicroService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
@Service
public class MicroServiceImpl implements MicroService {
    @Resource
    MicroMapper microMapper;
    @Override
    public void saveMicro(Micro micro){
        microMapper.insert(micro);
    }
    @Override
    public void updateMicro(Micro micro){
        microMapper.updateById(micro);
    }
    @Override
    public void deleteById(Long id){
        microMapper.deleteById(id);
    }
}
